package com.ruoyi.project.constant.statuEnum;

public enum PayStatus {

    NOPAY(0,"未支付"),
    PAY(1,"已支付");

    private final Integer code;
    private final String info;

    PayStatus(Integer code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public Integer getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        for (PayStatus ele : values()) {
            if(ele.getCode().equals(code)) return ele.getInfo();
        }
        return null;
    }
}
